'use strict';

angular.module('oaApp')
  .config(function ($stateProvider) {
    $stateProvider
      .state('app.admin-users', {
        url: '/admin/users',
        templateUrl: 'app/admin/users.html',
        controller: 'AdminUsersCtrl'
      })
      .state('app.admin-departments', {
        url: '/admin/departments',
        templateUrl: 'app/admin/departments.html',
        controller: 'AdminDepartmentsCtrl'
      })
      .state('app.admin-users-add', {
        url: '/admin/users/new',
        templateUrl: 'app/admin/users-add.html',
        controller: 'AdminUsersAddCtrl'
      })
      .state('app.admin-users-edit', {
        url: '/admin/users/{userId}/edit',
        templateUrl: 'app/admin/users-edit.html',
        controller: 'AdminUsersEditCtrl'
      });
  });
